﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

#if SQL2005
namespace SBPweb.Data.SQL2005
{
	/// <summary>
    /// This exception is thrown when a concurrency
    /// violation is detected in the database.
    /// </summary>
    [Serializable]
    public class ConcurrencyViolationException : RepositoryException
    {

		/// <summary>
		/// Initializes a new ConcurrencyViolationException
		/// </summary>
		public ConcurrencyViolationException()
        {
        }


		/// <summary>
		/// Initializes a new ConcurrencyViolationException
		/// </summary>
		/// <param name="message">Message of exception</param>
		public ConcurrencyViolationException(string message)
            : base(message)
        {
        }

		/// <summary>
		/// Initializes a new ConcurrencyViolationException
		/// </summary>
		/// <param name="message">Message of exception</param>
		/// <param name="inner">InnerException of exception</param>
		public ConcurrencyViolationException(string message, Exception inner)
            : base(message, inner)
        {
        }

		/// <summary>
		/// Initializes a new ConcurrencyViolationException
		/// </summary>
		/// <param name="info">info parameter for serialization/deserialization</param>
		/// <param name="context">context parameter for serialization/deserialization</param>
		protected ConcurrencyViolationException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
#endif